package com.myself.service;

import com.myself.entity.Permission;
import com.myself.entity.Role;

import java.util.List;

/**
 * Description:
 *
 * @Author: Liuzemin
 * @Date: 2020/7/10 15:51
 */
public interface RoleService extends BaseService<Role> {
    void updateUserRole_Id(Role role);

    void deleteAllRolePermissions(Long id);

    void correlationPermissions(Long roleId, Long... permissionIds);

    /*void correlationPermissions2(Long roleId, Long[] permissionIds);*/

    List<Permission> findPermissionByRoleId(Long id);

    List<Permission> findRolePermissionByRoleId(Long id);

}
